<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<span th:text="${stu2.name}"></span><br>
<span th:text="${stu2.java}"></span><br>
<span th:text="${stu2.math}"></span><br>
<span th:text="${stu2.age}"></span><br>
<span th:text="${stu2.address.city}"></span><br>
</body>
</html>